|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.agent.process.RAProcess
raar.agent.process.sensor.RASensor
raar.agent.process.sensor.RARegionSensor
raar.agent.process.sensor.RARegionSensor_Pie
raar.agent.process.sensor.RAObjectSensor
public class RAObjectSensor
A sensor with a response to objects of a certain class within a pie-piece- shaped region. Returns the distance to the nearest object of a certain class, relative to the radius of the pie.
| Field Summary |
|---|
| Fields inherited from class raar.agent.process.sensor.RASensor |
|---|
agent, output, outputName |
| Fields inherited from class raar.agent.process.RAProcess |
|---|
hasRun, inregister, outregister, register, sourceCode, statement |
| Fields inherited from interface raar.agent.process.RAWorldDependentProcess |
|---|
NO_OBJECT_DEFINED |
| Fields inherited from interface raar.agent.process.RAAgentDependentProcess |
|---|
NO_AGENT_DEFINED |
| Constructor Summary | |
|---|---|
RAObjectSensor()
Default constructor. |
|
RAObjectSensor(RAAgent agent)
Construct the sensor. |
|
| Method Summary | |
|---|---|
java.lang.String |
explain()
Explain what the sensor does. |
java.lang.String |
getClassName()
Get class name. |
java.awt.Color |
getColor()
Get color. |
java.lang.String |
getProcessableName()
Return the perceived class (or object) name. |
boolean |
isProcessable(RAWorldObject obj)
Return whether the object in question is perceivable by this sensor with current settings. |
boolean |
isSuitable(RAWorldObject obj)
Return whether the object in question is suitable for this sensor regardless of current settings. |
void |
setClassName(java.lang.String className)
Set class name. |
void |
setProcessableName(java.lang.String name)
Set the perceived class (or object) name. |
java.lang.String |
toString()
String representation. |
boolean |
usesClasses()
Return whether this sensor uses classes (true) or objects (false). |
| Methods inherited from class raar.agent.process.sensor.RARegionSensor_Pie |
|---|
getDirection, getRadius, getRegion, getSectionWidth, setDirection, setRadius, setSectionWidth |
| Methods inherited from class raar.agent.process.sensor.RARegionSensor |
|---|
run |
| Methods inherited from class raar.agent.process.sensor.RASensor |
|---|
acceptsInput, dumpRegisters, execute, get, getAgent, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput |
| Methods inherited from class raar.agent.process.RAProcess |
|---|
clone, getProcessName, getSourceCode, reset, setProcessName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RAObjectSensor()
public RAObjectSensor(RAAgent agent)
| Method Detail |
|---|
public void setClassName(java.lang.String className)
public java.lang.String getClassName()
public java.awt.Color getColor()
getColor in class RASensorpublic java.lang.String toString()
toString in class RASensorpublic java.lang.String explain()
explain in class RASensorpublic boolean isSuitable(RAWorldObject obj)
isSuitable in interface RAWorldDependentProcesspublic boolean isProcessable(RAWorldObject obj)
isProcessable in interface RAWorldDependentProcesspublic boolean usesClasses()
usesClasses in interface RAWorldDependentProcesspublic java.lang.String getProcessableName()
getProcessableName in interface RAWorldDependentProcesspublic void setProcessableName(java.lang.String name)
setProcessableName in interface RAWorldDependentProcess
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||